package smartlifev30.com.sdk.bean.response;

/**
 * Created by tys on 2018/8/12.
 */

public class LoginResponse {


    /**
     * api_version : 0.1
     * from :
     * to : 18782918305
     * msg_id : ANDBJ-001
     * msg_class : app_auth
     * msg_name : user_login
     * msg_type : response
     * status : 0
     * result : {"token":"2d173b2ec71b41d5be77ee0748c4de23","channelID":"030","responseText":"","sztoken":""}
     */

    private String api_version;
    private String from;
    private String to;
    private String msg_id;
    private String msg_class;
    private String msg_name;
    private String msg_type;
    private int status;
    /**
     * token 登录时为null
     */
    private ResultBean result;

    public String getApi_version() {
        return api_version;
    }

    public void setApi_version(String api_version) {
        this.api_version = api_version;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getMsg_id() {
        return msg_id;
    }

    public void setMsg_id(String msg_id) {
        this.msg_id = msg_id;
    }

    public String getMsg_class() {
        return msg_class;
    }

    public void setMsg_class(String msg_class) {
        this.msg_class = msg_class;
    }

    public String getMsg_name() {
        return msg_name;
    }

    public void setMsg_name(String msg_name) {
        this.msg_name = msg_name;
    }

    public String getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(String msg_type) {
        this.msg_type = msg_type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * token : 2d173b2ec71b41d5be77ee0748c4de23
         * channelID : 030
         * responseText :
         * sztoken :
         */

        private String token;
        private String channelID;
        private String responseText;
        private String sztoken;

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getChannelID() {
            return channelID;
        }

        public void setChannelID(String channelID) {
            this.channelID = channelID;
        }

        public String getResponseText() {
            return responseText;
        }

        public void setResponseText(String responseText) {
            this.responseText = responseText;
        }

        public String getSztoken() {
            return sztoken;
        }

        public void setSztoken(String sztoken) {
            this.sztoken = sztoken;
        }

        @Override
        public String toString() {
            return "ResultBean{" +
                    "token='" + token + '\'' +
                    ", channelID='" + channelID + '\'' +
                    ", responseText='" + responseText + '\'' +
                    ", sztoken='" + sztoken + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "LoginResponse{" +
                "api_version='" + api_version + '\'' +
                ", from='" + from + '\'' +
                ", to='" + to + '\'' +
                ", msg_id='" + msg_id + '\'' +
                ", msg_class='" + msg_class + '\'' +
                ", msg_name='" + msg_name + '\'' +
                ", msg_type='" + msg_type + '\'' +
                ", status=" + status +
                ", result=" + result +
                '}';
    }
}
